package com.fch.buffetorder.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Order {

    @ApiModelProperty(value = "订单主键", position = 1)
    private String orderId;
    @ApiModelProperty(value = "用户id", position = 2)
    private Integer userId;
    @ApiModelProperty(value = "自取或外卖", position = 3)
    private Integer orderWay;
    @ApiModelProperty(value = "订单的地址", position = 4)
    private String orderAddress;
    @ApiModelProperty(value = "创建时间", position = 5)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date orderCreateTime;
    @ApiModelProperty(value = "订单主体 json数据", position = 6)
    private String orderJsonBody;
    @ApiModelProperty(value = "取餐号 到店自取的订单需要", position = 7)
    private String orderGetNumb;
    @ApiModelProperty(value = "订单状态", position = 8)
    private Integer orderState;
    @ApiModelProperty(value = "订单备注", position = 9)
    private String orderNote;
    @ApiModelProperty(value = "订单应付金额", position = 10)
    private BigDecimal orderShouldPay;
    @ApiModelProperty(value = "订单实际付款金额", position = 11)
    private BigDecimal orderRealPay;

}
